package me.zhenqu.model.dao.impl;

import me.zhenqu.model.dao.TimeLineDao;
import me.zhenqu.model.pojo.entity.TimeLine;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: yibing.tan
 * Date: 11-11-10
 * Time: 下午4:50
 * To change this template use File | Settings | File Templates.
 */
@Repository("timeLineDao")
public class TimeLineDaoImpl extends ZhenquDaoHelper<TimeLine> implements TimeLineDao {
    @Override
    public TimeLine findByID(Long id) {
        return null;
    }

    public List<TimeLine> loadTimeLines(Long uid, long since){
        return getHibernateTemplate().find("from TimeLine where user_id=? and update_time>?",uid, since);
    }
}
